package com.jinhongone.pattern.behavior.visitor;

/**
 * @author jinho
 * @className OtherPerson
 * @description 具体访问者
 * @date 2025/4/17 10:16
 */
public class OtherPerson implements Person {
    @Override
    public void visit(Cat cat) {
        System.out.println("其他人撸猫");
    }

    @Override
    public void visit(Dog dog) {
        System.out.println("其他人撸狗");
    }
}
